package com.gouwudai.gobbs.service;

import java.util.HashMap;

import com.gouwudai.gobbs.pojo.TbbsTopicBuy;
import com.litt.core.exception.BusiException;
import com.litt.core.exception.DBException;

/**
 * <pre>
 *  Title:TODO
 *  Description: TODO  
 * </pre>
 * 
 * @author <a href="mailto:littcai@hotmail.com">空心大白菜</a>
 * @date 2007-3-29
 * @version 1.0
 * <pre>
 * 修改记录
 *    修改后版本:     修改人：  修改日期:     修改内容: 
 * </pre>
 */
public interface ITopicBuyService {

	/**
	 * 新增或更新购买
	 * @param paramMap
	 * @return
	 */
	void doBuyTopic(HashMap paramMap) throws BusiException;

	TbbsTopicBuy load(Integer id);
	
    /**
     * 根据主题ID和用户ID查找
     * @param topicId
     * @param userId
     * @return
     */
	public TbbsTopicBuy loadByTopicUser(Integer topicId,Integer userId);

}